package com.yiqi.zhiyuan.feature.order.contract;

import com.suozhang.framework.entity.bo.PageData;
import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;
import com.yiqi.zhiyuan.entity.vo.OrderVO;

import java.util.List;

import io.reactivex.Observable;

/**
 * @ProjectName: ZhiYuan
 * @Description: java类作用描述
 * @Author: lijuwen
 * @CreateDate: 2019/3/14 10:45
 * @UpdateUser: 更新者
 * @UpdateDate: 2019/3/14 10:45
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public interface OrderContract {

    interface Model {

        /**
         * 司机订单列表
         *
         * @param
         * @return
         */
        Observable<PageData<OrderVO>> doSelectOrderList(int type, int pageIndex);
    }

    interface View extends BaseView {


        /**
         * 获取成功
         */
        void showOrderListSuccess(List<OrderVO> data);


        /**
         * 获取失败
         */
        void showOrderListError(String errorMsg);

        /**
         * 获取更多成功
         */
        void showOrderListMoreSuccess(List<OrderVO> data);

        /**
         * 获取更多失败
         */
        void showOrderListMoreError(String errorMsg);

        void showOrderListEmpty();
    }

    interface Presenter extends BasePresenter {

        /**
         * 订单列表数据
         *
         * @param
         */
        void doSelectOrderList(int type,int pageIndex);

        void doSelectOrderListMore(int type,int pageIndex);
    }



}